import Main from "../view/Main";
import Menu from "../view/Menu.js";
import Cart from "../view/Cart.js";
import My from "../view/My.js";
import Login from "../view/Login.js";
import ForgotPassword from "../view/ForgotPassword.js";
import PersonalData from "../view/PersonalData.js";
import SafetyCenter from "../view/SafetyCenter";
import CommodityDetail from "../view/CommodityDetail";
import SearchResult from "../view/SearchResult";
import Collection from "../view/Collection";
import OrderDetail from "../view/OrderDetail";
import AddAddress from "../view/AddAddress"
import AddressAdmin from "../view/AddressAdmin"
import EditAddress from "../view/EditAddress";
import MyOrder from "../view/MyOrder";

const routes = [
    {
        path:'/myOrder',
        name:'myOrder',
        component:MyOrder
    },
    {
        path:'/editAddress/:aid',
        name:'editAddress',
        component:EditAddress
    },
    {
        path:'/addressAdmin',
        name:'addressAdmin',
        component:AddressAdmin
    },
    {
        path:'/addAddress',
        name:'addAddress',
        component:AddAddress
    },
    {
        path:'/orderDetail',
        name:'orderDetail',
        component:OrderDetail
    },
    {
        path:'/collection',
        name:'collection',
        component:Collection
    },
    {
        path:'/searchResult/:keyword',
        name:'searchResult',
        component:SearchResult
    },
    {
        path:'/commodityDetail/:id',
        name:'commodityDetail',
        component:CommodityDetail
    },
    {
        path:'/safetyCenter',
        name:'safetyCenter',
        component:SafetyCenter
    },
    {
        path:'/personalData',
        name:'personalData',
        component:PersonalData
    },
    {
        path:'/forgotPassword',
        name:'forgotPassword',
        component:ForgotPassword
    },
    {
        path:'/login',
        name:'login',
        component:Login
    },
    {
        path:'/menu',
        name:'menu',
        component:Menu
    },
    {
        path:'/cart',
        name:'cart',
        component:Cart
    },
    {
        path:'/my',
        name:'my',
        component:My
    },
    {
        path:'/',
        name:'main',
        component:Main
    },
]

export default routes